package com.upcode.weighing.domain;

import com.upcode.weighing.base.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * <p>
 * app版本和文件信息
 * </p>
 *
 * @author alex
 * @since 2024-07-21
 */
public class AppInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * app名称
     */
    private String appName;

    /**
     * 包名
     */
    private String packageName;

    /**
     * 文件id
     */
    private Long fileId;

    /**
     * 版本号
     */
    private Integer versionNo;

    /**
     * 版本名称
     */
    private String versionName;

    /**
     * 是否强制更新 0否 1是
     */

    private Integer isForceUpdate;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 源文件名称
     */
    private String origName;

    /**
     * 下载路径
     */
    private String downloadPath;

    /**
     * 启用状态  0启用 1停用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 更新内容
     */
    private String updateContent;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }
    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }
    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }
    public Integer getVersionNo() {
        return versionNo;
    }

    public void setVersionNo(Integer versionNo) {
        this.versionNo = versionNo;
    }
    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }
    public Integer getIsForceUpdate() {
        return isForceUpdate;
    }

    public void setIsForceUpdate(Integer isForceUpdate) {
        this.isForceUpdate = isForceUpdate;
    }
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    public String getOrigName() {
        return origName;
    }

    public void setOrigName(String origName) {
        this.origName = origName;
    }
    public String getDownloadPath() {
        return downloadPath;
    }

    public void setDownloadPath(String downloadPath) {
        this.downloadPath = downloadPath;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }
    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    @Override
    public String toString() {
        return "AppInfo{" +
                "id=" + id +
                ", appName='" + appName + '\'' +
                ", packageName='" + packageName + '\'' +
                ", fileId=" + fileId +
                ", versionNo=" + versionNo +
                ", versionName='" + versionName + '\'' +
                ", isForceUpdate=" + isForceUpdate +
                ", fileName='" + fileName + '\'' +
                ", origName='" + origName + '\'' +
                ", downloadPath='" + downloadPath + '\'' +
                ", status=" + status +
                ", createDate=" + createDate +
                ", updateContent='" + updateContent + '\'' +
                '}';
    }
}
